#ifndef __PRESSURE_H
#define __PRESSURE_H

#include "stm32f4xx.h"

typedef struct Device_PressureSensorStruct{
    GPIO_TypeDef *gpioPort;
    uint16_t gpioPin;
    uint16_t lastData;
    ADC_TypeDef *adcPort;
    uint8_t adcChannel;
} Device_PressureSensor;

uint16_t BSP_PressureSensor_ReadData(Device_PressureSensor *dv);
uint16_t BSP_PressureSensor_SampleAndReadData(Device_PressureSensor *dv, uint16_t samplingTime);

#endif
